package com.ruoyi.technician.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.technician.mapper.TechnicianBackMapper;
import com.ruoyi.technician.domain.TechnicianBack;
import com.ruoyi.technician.service.ITechnicianBackService;

/**
 * 银行卡管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
@Service
public class TechnicianBackServiceImpl implements ITechnicianBackService 
{
    @Autowired
    private TechnicianBackMapper technicianBackMapper;

    /**
     * 查询银行卡管理
     * 
     * @param id 银行卡管理主键
     * @return 银行卡管理
     */
    @Override
    public TechnicianBack selectTechnicianBackById(Long id)
    {
        return technicianBackMapper.selectTechnicianBackById(id);
    }

    /**
     * 查询银行卡管理列表
     * 
     * @param technicianBack 银行卡管理
     * @return 银行卡管理
     */
    @Override
    public List<TechnicianBack> selectTechnicianBackList(TechnicianBack technicianBack)
    {
        return technicianBackMapper.selectTechnicianBackList(technicianBack);
    }

    /**
     * 新增银行卡管理
     * 
     * @param technicianBack 银行卡管理
     * @return 结果
     */
    @Override
    public int insertTechnicianBack(TechnicianBack technicianBack)
    {
        technicianBack.setCreateTime(DateUtils.getNowDate());
        return technicianBackMapper.insertTechnicianBack(technicianBack);
    }

    /**
     * 修改银行卡管理
     * 
     * @param technicianBack 银行卡管理
     * @return 结果
     */
    @Override
    public int updateTechnicianBack(TechnicianBack technicianBack)
    {
        technicianBack.setUpdateTime(DateUtils.getNowDate());
        return technicianBackMapper.updateTechnicianBack(technicianBack);
    }

    /**
     * 批量删除银行卡管理
     * 
     * @param ids 需要删除的银行卡管理主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianBackByIds(Long[] ids)
    {
        return technicianBackMapper.deleteTechnicianBackByIds(ids);
    }

    /**
     * 删除银行卡管理信息
     * 
     * @param id 银行卡管理主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianBackById(Long id)
    {
        return technicianBackMapper.deleteTechnicianBackById(id);
    }
}
